c# list string return concatenate

36

c# list string return concatenate -

string delimiter = ",";
List<string> items = new List<string>() { "foo", "boo", "john", "doe" };
Console.WriteLine(items.Aggregate((i, j) => i + delimiter + j));

Comments

Submit
0 Comments